import { cloneDeep } from 'lodash';
import apiClient from '../apiClient';

class AddMockupBgService {

  // 获取背景图片列表
  // 图片类型(默认官方) 1自己上传 2官方
  getBgImgList(pageNo: number, pageSize: number, source: number) {
    return apiClient.get({
      url: '/member/backGround/page', params: { pageNo, pageSize, source }
    });
  }

  // 上传背景图片
  addBgImg(picPath: string) {
    return apiClient.get({
      url: '/member/backGround/saveImage', params: { picPath }
    });
  }

  // 删除图片
  delBgImg(domainId: number) {
    return apiClient.delete({
      url: '/member/backGround/delete', params: { domainId }
    });
  }


}

const addMockupBgService = new AddMockupBgService();

export default addMockupBgService;
